Skip to content

AP-534: Add additional health checks for external services#13

Merged
yzhoubk merged 5 commits intomainfrom
AP-534
Feb 6, 2026
Merged

AP-534: Add additional health checks for external services#13
yzhoubk merged 5 commits intomainfrom
AP-534

Conversation

@yzhoubk
Copy link
Contributor

@yzhoubk yzhoubk commented Feb 5, 2026

Add additional health check for below services:

  1. TIND
  2. PayPal
  3. HathiTrust
  4. whois.arin.net
  5. Berkeley ServiceNow

@yzhoubk
Copy link
Contributor Author

yzhoubk commented Feb 6, 2026

@davezuckerman
Your PR was merged into main while I was finishing the Framework PR, and I hit conflicts since we touched some of the same functions. I've pulled latest main and merged locally, could you take a quick look to confirm your changes are still intact?

Copy link
Contributor

@davezuckerman davezuckerman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just some minor changes as noted. There was a branched pushed to main yesterday dealing with okcomputer so some of these changes you put in may overlap a bit with that when you rebase.

OkComputer::Registry.register 'database-migrations', OkComputer::ActiveRecordMigrationsCheck.new

# Ensure connectivity to the mail system.
OkComputer::Registry.register 'action-mailer', OkComputer::ActionMailerCheck.new
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no longer needed because a custom mail-check was just checked in which covers this


# Ensure TIND API is working.
tind_health_check_url = "#{Rails.application.config.tind_base_uri}api/v1/search?In=en"
OkComputer::Registry.register 'thind-api', BerkeleyLibrary::Util::HeadCheck.new(tind_health_check_url)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be "tind-api" right?

database
alma-patron-lookup
database-migrations
thind-api
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be "'tind-api"?

paypal-payflow
hathitrust-api
berkeley-service-now
action-mailer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

per above comment. No longer needed.

database
alma-patron-lookup
database-migrations
thind-api
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"tind-api' right?

hathitrust-api
berkeley-service-now
mail-connectivity
action-mailer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed

Copy link
Member

@awilfox awilfox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion on the config, otherwise this looks good after @davezuckerman's comments are addressed.

Comment on lines 110 to 112
config.hathiTrust_health_check_url = 'https://catalog.hathitrust.org/api/volumes/full/oclc/424023.json'
config.whois_health_check_url = 'https://whois.arin.net/rest/poc/1AD-ARIN'
config.berkeley_service_now_health_check_url = 'https://berkeley.service-now.com/kb_view.do?sysparm_article=KB0011960'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to define a health_check_url clade to keep them logically together? Something like:

Suggested change
config.hathiTrust_health_check_url = 'https://catalog.hathitrust.org/api/volumes/full/oclc/424023.json'
config.whois_health_check_url = 'https://whois.arin.net/rest/poc/1AD-ARIN'
config.berkeley_service_now_health_check_url = 'https://berkeley.service-now.com/kb_view.do?sysparm_article=KB0011960'
config.x.health_check_urls.hathiTrust = 'https://catalog.hathitrust.org/api/volumes/full/oclc/424023.json'
config.x.health_check_urls.whois = 'https://whois.arin.net/rest/poc/1AD-ARIN'
config.x.health_check_urls.berkeley_service_now = 'https://berkeley.service-now.com/kb_view.do?sysparm_article=KB0011960'

Note that since we would be defining a sub level, config.x is required here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@davezuckerman
Copy link
Contributor

I had missed your comment about rebasing. It looks like the rebase conflicts were properly resolved. Other than the "thind-api" vs. 'tind-api' naming and not needing the action-mailer (along with Anna's comments). This looks good

@yzhoubk yzhoubk merged commit c703c97 into main Feb 6, 2026
5 checks passed
@yzhoubk yzhoubk deleted the AP-534 branch February 6, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants